package com.sqlcheck.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Builder;

@Data
@Builder
@Schema(description = "SQL格式化响应")
public class FormatSqlResponse {

    @Schema(description = "格式化是否成功", example = "true")
    private boolean success;

    @Schema(description = "格式化后的SQL")
    private String formattedSql;

    @Schema(description = "错误信息，格式化失败时返回")
    private String errorMessage;

    @Schema(description = "格式化耗时（毫秒）", example = "15")
    private Long duration;
}